<style>
    /* input[type="checkbox"],input[type="checkbox"]:focus {
        -webkit-appearance: none;
        height: 12px;
        width: 12px;
        border-radius: 6px;
        vertical-align: middle;
        background: #ffffff;
        margin-top: 0px;
        border: 1px solid rgba(115, 123, 145, 1);
    }
    input[type="checkbox"]:checked {
        background: url('/assets/img/speech-ch.png') no-repeat center top;
        background-size: 100% 100%;
    } */

    .checked-l {
        color: rgba(115, 123, 145, 1);
        display: flex;
        flex-direction: row;
        align-items: center;
        height: 23px;
        padding-top: 7px;
    }
    /* .checked-l input{
        pointer-events: none;
    } */
    .auth_t{
        display: none;
    }
    .line-num{
        color: #3498db;
        font-size: 16px;
        margin: 0 10px;
    }
        .form-group .control-label span{
            color: red;        
        }
</style>
 <span class="status hide">{$auth->check('sound/status')}</span>
<form id="edit-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span>*</span>{:__('Group')}:</label>
        <div class="col-xs-12 col-sm-8 auth_group">
            {:build_select('group[]', $groupdata, $groupids, ['class'=>'form-control selectpicker', 'data-rule'=>'required'])}
        </div>
    </div>
    <!-- <div class="form-group">
        <label for="c-admin_id" class="control-label col-xs-12 col-sm-2">{:__('所属门店组长')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-admin_id" data-rule="" data-source="auth/admin/selectpage2" data-field="nickname" class="form-control selectpage" name="row[admin_id]" type="text" value="{$row.admin_id}">
        </div>
    </div> -->
    <div class="form-group">
        <label for="username" class="control-label col-xs-12 col-sm-2"><span>*</span>{:__('用户名称')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="username" name="row[username]" value="{$row.username}" data-rule="required;username" />
        </div>
    </div>
<!--
    <div class="form-group">
        <label for="nickname" class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="nickname" name="row[nickname]" autocomplete="off" value="{$row.nickname}" data-rule="required" />
        </div>
    </div>
-->
    <div class="form-group">
        <label for="password" class="control-label col-xs-12 col-sm-2"><span>*</span>{:__('用户密码')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="password" class="form-control" id="password" name="row[password]" autocomplete="new-password" value="" data-rule="password" />
        </div>
    </div>

    <div class="form-group auth_t">
        <label class="control-label col-xs-12 col-sm-2">{:__('是否代理')}:</label>
        <div class="col-xs-1 col-sm-1 checked-l">
            <input type="checkbox" name="agent" id="keeplogin" value="{$row.level}"/>
        </div>
    </div>
    <div class="form-group auth_num_tex">
        <label class="control-label col-xs-12 col-sm-2">{:__('公司名称')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" name="row[company_name]" value="{$row.company_name}" id="company_name"/>
        </div>
    </div>
    <div class="form-group auth_num_tex">
        <label class="control-label col-xs-12 col-sm-2">{:__('联系电话')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" name="row[telephone]" value="{$row.telephone}" data-rule="mobile" id="telephone"/>
        </div>
    </div>
    <input type="text" class="form-control levl" name="row[level]" style="display:none;" value="{$row.level}"/>
    <!--<div class="form-group">
        <label for="extension" class="control-label col-xs-12 col-sm-2">{:__('分机号码')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="number" class="form-control" id="extension" name="row[extension]" autocomplete="off" value="{$row.extension}" data-rule="required" />
        </div>
    </div>
    <div class="form-group">
        <label for="extension_password" class="control-label col-xs-12 col-sm-2">{:__('分机密码')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="extension_password" name="row[extension_password]" autocomplete="off" value="{$row.extension_password}" data-rule="required" />
        </div>
    </div>-->
<!--
    <div class="form-group">
        <label for="email" class="control-label col-xs-12 col-sm-2">{:__('Email')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="email" class="form-control" id="email" name="row[email]" value="{$row.email}" data-rule="email" />
        </div>
    </div>
-->
    <!-- <div class="form-group">
        <label for="loginfailure" class="control-label col-xs-12 col-sm-2">{:__('Loginfailure')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="number" class="form-control" id="loginfailure" name="row[loginfailure]" value="{$row.loginfailure}" data-rule="required" />
        </div>
    </div> -->
    <div class="form-group auth_num_tex">
        <label class="control-label col-xs-2 col-sm-2">{:__('新增线路数量')}:</label>
        <div class="col-xs-3 col-sm-2 auth_num">
            <input type="number" class="form-control" name="row[auth_number]" value="0" min="0" max="" id="auth_number"/>
        </div>
    </div>
    <div class="form-group auth_num_tex">
        <label class="control-label col-xs-2 col-sm-2" style="color: red;">{:__('温馨提示')}:</label>
        <div class="col-xs-12 col-sm-8" style="padding-top: 2px;">
           您可分配的线路数量为<span class="line-num">0</span>
        </div>
    </div>
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['normal'=>__('Normal'), 'locked'=>__('Locked'), 'deleted'=>__('Deleted')], $row['status'])}
        </div>
    </div> -->
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8" style='text-align: center;'>
                <button type="submit" class="btn btn-info btn-embossed disabled" style='margin-right: 10px;padding:3px 12px;'>{:__('OK')}</button>
                <button type="reset" class="btn btn-default btn-embossed" style='padding:4px 12px;'>{:__('Reset')}</button>
            </div>
    </div>
</form>
